package com.example.springbootweb.dao;

import com.example.springbootweb.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author 默
 * @Date 2022/11/18
 * @Time 19:00
 * @desc
 * @Description
 */
public interface UserRepository extends JpaRepository<User,Long> {
    User findByUserName(String userName);

    User findByUserNameOrEmail(String username,String email);
}
